home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-26 | 1.3 KB | 35 lines | [TEXT/ScoM] |
- CRITISIZING OBVIOUS MATERIAL
-
- If a vector sounds boring smash it with vector-critisize. Like music
- critics it is not very truthful but if a concert was bad the article
- is still readable. Self-critical sets are a branch of mathematics. This
- set is critical to its minimum value. Originally the critical value
- is replaced by random number but it is much more interesting to use
- values of meaning and structures. If you supply random-fills from
- vector-rounded gen-noise-white you'll get the original functionality.
- Try changing critic rule.
-
- (defun vector-critisize (iter initial-set random-fills)
- (let ((out initial-set)
- (minval nil)
- (fill-len (length random-fills))
- (new-random nil))
- (dotimes (i iter)
- (setq minval (apply 'min (vector-to-list out)))
- (setq new-random (aref random-fills (mod i fill-len)))
- (setq out (substitute new-random minval out :count 1)))
- out))
-
- (setq samples 512)
-
- (setq v1 (vector-critisize
- samples
- (vector-round 0 100 (gen-sin 1 1 samples))
- (vector-round 0 100 (gen-sin 2 1 samples))))
- (setq v2 (vector-critisize
- samples
- (vector-round 0 100 (gen-sin 3 1 samples))
- (vector-round 0 100 (gen-sin 4 1 samples))))
-
- (setq theme-vector1 (vector-critisize samples v1 v2))
-